home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap13 / dun13_3.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  501 b   |  14 lines

  1. <SCRIPT LANGUAGE="VBScript">
  2. for l=0 to document.all.length-1
  3.     document.write document.all(l).tagName+"   "
  4. next
  5.  
  6. document.write "<P>There are " & document.all.tags("LI").length-1 & _
  7.                " <LI> tags on this page.<P>"
  8. document.write "The first tag on this page is: " & _
  9.                document.all.item(0).tagName & "<P>"
  10. document.write "The 'myTag' element is a: " & _
  11.                document.all.item("myTag").tagName & "<P>"
  12.  
  13. </SCRIPT>
  14.